<?php

$_menuActive=\core\G::get("menuActive");
if (!empty($_menuActive)){
  echo '<script>window._menuActive="'.$_menuActive.'";</script>';
}
?>
<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- User profile -->
        {:config("site.navbar.left.profile")?widget("user/profile_nav"):""}
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
            <ul id="sidebarnav">
              <?php

              echo (new \core\modules\Menu())->make(config("menu."),(\app\admin\classes\AdminUser::getInstance()->ac));
              ?>
            </ul>
        </nav>
        <!-- End Sidebar navigation -->
    </div>
    <!-- End Sidebar scroll-->
    <!-- Bottom points-->
    {:config("site.navbar.left.footer")?widget("navbar/footer"):""}

</aside>
